﻿using System.Windows;
using Bookvar.ObjectModel;

namespace Bookvar.UI
{
    public class SelectedTopicChangedEventArgs : RoutedEventArgs
    {
        private readonly Topic oldSelectedTopic;
        private readonly Topic newSelectedTopic;
        
        public Topic OldSelectedTopic
        {
            get { return oldSelectedTopic; }
        }

        public Topic NewSelectedTopic
        {
            get { return newSelectedTopic; }
        }

        public SelectedTopicChangedEventArgs( Topic oldSelectedTopic, Topic newSelectedTopic )
        {
            this.oldSelectedTopic = oldSelectedTopic;
            this.newSelectedTopic = newSelectedTopic;
        }

        public SelectedTopicChangedEventArgs( RoutedEvent routedEvent, Topic oldSelectedTopic, Topic newSelectedTopic ) : base( routedEvent )
        {
            this.oldSelectedTopic = oldSelectedTopic;
            this.newSelectedTopic = newSelectedTopic;
        }

        public SelectedTopicChangedEventArgs( RoutedEvent routedEvent, object source, Topic oldSelectedTopic, Topic newSelectedTopic ) : base( routedEvent, source )
        {
            this.oldSelectedTopic = oldSelectedTopic;
            this.newSelectedTopic = newSelectedTopic;
        }
    }
}
